#include "../commons/Observer.h"
#include "../commons/Subject.h"

int main(int argc, char* args[])
{
	Subject* s1 = new Subject();
	
	Observer* o1 = new Observer(1);
	Observer* o2 = new Observer(2);
	Observer* o3 = new Observer(3);
	Observer* o4 = new Observer(4);
	Observer* o5 = new Observer(5);
	Observer* o6 = new Observer(6);

	s1->registerObserver(o1);
	s1->registerObserver(o2);
	s1->registerObserver(o3);
	s1->registerObserver(o4);

	s1->unregisterObserver(o3);

	s1->registerObserver(o5);
	s1->registerObserver(o6);
	
	s1->notifyObservers();

	return 0;
}